import React, { Component } from 'react'

export default class componentName extends Component {
  render() {
    const { state } = this.props.location
    const { test, yinyin } = state || {}
    return (
      <div>
        <h3>获取路由参数</h3>
        <div>
          参数：
          <span style={{ color: 'red' }}>{test}</span>
          <br />
          <span style={{ color: 'red' }}>{yinyin}</span>
        </div>
      </div>
    )
  }
}
